package org.commando.donquixote.erlmodleing;

import java.util.ArrayList;

public class Operator {
	String Name = "";
	ArrayList<String> Params = new ArrayList<String>();
	boolean ASync = false;
	
	public Operator(String name) {
		super();
		Name = name;
	}
	
	public String getName(){
		return Name;
	}
	
	public void addParam(String ParamName){
		Params.add(ParamName);
	}
	
	public void setASync(boolean value){
		this.ASync = value;
	}
	
	public boolean isASync(){
		return (ASync == true);
	}
	
	public String[] getParams(){
		String[] Result = new String[Params.size()];
		for(int i = 0; i < Params.size(); i++){
			Result[i] = Params.get(i);
		}
		return Result;
	}
	
}
